#include <stdio.h>  
#include "lua.h"  
#include "lualib.h"  
#include "lauxlib.h"

void luaopen_snapshot(lua_State *L);

int main(int argc, char const *argv[])
{
    lua_State *L = luaL_newstate();
    luaL_openlibs(L);
    luaopen_snapshot(L);
    luaL_dofile(L, "dump2.lua");
    lua_close(L);
    return 0;
}
